﻿using Model.Parameter.Front;
using Model.Result.Front;

namespace IService.Front
{
    public interface ICustomerService : IBaseService<TCustomerinfo>
    {
        Task<RM_FrontApiReturn<RM_Customerinfo>> BaseInfo();

        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="account"></param>
        /// <param name="passWord"></param>
        /// <returns></returns>
        Task<RM_ApiResult> LoginByAccount(string account, string passWord);

        Task<RM_FrontApiReturn<object>> Logout();

        /// <summary>
        /// 用户注册
        /// </summary>
        /// <param name="par"></param>
        /// <param name="file"></param>
        /// <returns></returns>
        Task<RM_ApiResult> RegisterCustomer(Par_Customerinfo1 par);

        RM_ApiResult GetDefaultAvator();

        /// <summary>
        /// 券包
        /// </summary>
        /// <returns></returns>
        Task<RM_ApiResult> GetCouponList();

        /// <summary>
        /// 获取性别选择
        /// </summary>
        /// <returns></returns>
        RM_ApiResult GetSexSelect();

        RM_ApiResult GetSourceSelect();

        Task<RM_ApiResult> UpdateCustomer(Par_Customerinfo par);
    }
}